#ifndef __BSP_MXC6655_H__
#define __BSP_MXC6655_H__
#include <stm32f1xx.h>
#define  REG_XAXIS  0x03;
#define  REG_YAXIS  0x05;
#define  REG_ZAXIS  0x07;
#define  REG_TOUT   0x09;
#define  MXC_ADR	0x15
#define  MXC_CMD_DEV_WRITE 		(MXC_ADR << 1)
#define  MXC_CMD_DEV_READ		((MXC_ADR << 1) | 0x01)


float getAccel(uint8_t axis, uint8_t range);
int updateAccelAll();
float getTemp();
uint8_t MXC6655_Read(uint8_t addr, uint8_t* data, uint8_t numReadToBytes);
void mxc_example(void);
#endif // !__BSP_MXC6655_H__
